// 
// Copyright (c) 2005-2006 David Terrell <dbt@meat.net>
//

// ==UserScript==
// @name          Fix amazon Links
// @namespace     http://meat.net/
// @description   Fix extra tracking garbage in amazon links
// @include       http://www.amazon.com/*/dp/*
// ==/UserScript==

var url, re, m;
url = window.location.href;
re = new RegExp('http://www.amazon.com/[^/]+/dp/([^/]+)')
m = re.exec(url)
if (m) { url = 'http://www.amazon.com/x/dp/' + m[1] + '/'; }
if (window.location.href != url) {
    window.location.href = url;
}
